package model

func FibonacciSequence(n int) (m, sum int) {
	if n == 1 {
		m = 1
		sum = 1
		return m, sum
	} else if n == 2 {
		m = 1
		sum = 2
		return m, sum
	}
	m1, sum1 := FibonacciSequence(n - 1)
	m2, _ := FibonacciSequence(n - 2)
	m = m1 + m2
	sum = sum1 + m
	return m, sum
}
